<template>
  <div class="comment">
    <createComments></createComments>
  </div>
</template>
<script>
import createComments from '@/components/createComments'
export default {
  data(){
    return{
      value:'',
      checked:true,
      user_list:[],
    }
  },
  components:{
    createComments,
  },
  methods:{
    submit(data){
      this.$store.dispatch('api_post_comment',data).then(res=>{
        if(res.status == 200){
          this.$router.go(-1)
          this.$toast.success('评论成功');
        }
      }).catch(err=>{
        console.log(err)
        this.$toast.fail('评论失败，请稍后重试');
      })
    }
  },

}
</script>

<style lang="less" scoped >
.comment{
  position: absolute;
  top:0;
  bottom:0;
  width: 100%;
  background: #fff;
}
</style>